﻿using MaterialDesignThemes.Wpf;
using System.Configuration;
using System.Data;
using System.Windows;
using System.Windows.Media;
using WPF项目.ViewModels;
using WPF项目.Views;

namespace WPF项目
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : PrismApplication
    {
        // 这里 protected访问父class方法并且进行重写CreateShell方法
        protected override Window CreateShell()
        {
            // 启动窗口设置
            return Container.Resolve<MainView>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<AgentMattersViwe, AgentMattersViweModel>();
            containerRegistry.RegisterForNavigation<HomeViwe, HomeViweModel>();
            containerRegistry.RegisterForNavigation<InstallViwe, InstallViweModel > ();
            containerRegistry.RegisterForNavigation<MemoViwe, MemoViweModel>();
             containerRegistry.RegisterForNavigation<SkinView, SkinViewModel>();
        }

    }

}
